<script type="text/javascript"
	src="${static}/framework/jquery-easyui-1.4.1/jquery.min.js?v=${bv}"></script>
<link rel="stylesheet"
	href="${static}/framework/kindeditor/themes/default/default.css?v=${bv}" />
<link rel="stylesheet"
	href="${static}/framework/kindeditor/plugins/code/prettify.css?v=${bv}" />
<script charset="utf-8"
	src="${static}/framework/kindeditor/kindeditor.js?v=${bv}"></script>
<script charset="utf-8"
	src="${static}/framework/kindeditor/lang/zh_CN.js?v=${bv}"></script>
<script charset="utf-8"
	src="${static}/framework/kindeditor/plugins/code/prettify.js?v=${bv}"></script>
<script>
	prettifyCssPath = "${static}/framework/kindeditor/plugins/code/prettify.css?v=${bv}";
	uploadJson = "${base}/kindeditor/uploadJson";
</script>
<script type="text/javascript">
	$(document).ready(function() {
		var editor = null;
		$("#add").bind("click", function() {

			var content = editor.html();
			var summary = summary = editor.text();

			alert("html=" + content + ",text=" + summary)

		});
		var items=[ 'copy', 'paste',
		            'plainpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
		            'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent',  '-',
		            'title', 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold',
		            'italic', 'underline', 'strikethrough'];
		KindEditor.ready(function(K) {
			editor = K.create('textarea[id="content"]', {
				cssPath : prettifyCssPath,
				uploadJson : uploadJson,
				urlType : 'absolute',
				items:items
			});
			prettyPrint();
			KindEditor.html("#content","输入HTML内容，点击我，查看效果");
		});
	
	});
</script>
<textarea name="content" id="content"
	style="width: 700px; height: 70px;"></textarea>
<button id="add">KindEditor.html</button>
